package com.beten.ui.main.city;


import android.content.Context;
import android.widget.ListView;

import com.beten.demo.R;
import com.beten.ui.main.NewsItemInfo;
import com.beten.ui.main.NewsListAdapter;
import com.beten.ui.util.BasePanel;

public class WeatherCtrl extends BasePanel {

	ListView weather_list;
	public NewsListAdapter adapter;
	public WeatherCtrl(Context _context) {
		super(_context);
		
	}

	@Override
	protected int GetXmlId() {
		return R.layout.weather_panel;
	}

	@Override
	protected void Init() {
		adapter=new NewsListAdapter(context);
		
		weather_list=(ListView)panel.findViewById(R.id.weather_list);
		
		for(int i=0;i<30;i++)
		{
			NewsItemInfo newInfo=new NewsItemInfo();
			adapter.mData.add(newInfo);
		}
		weather_list.setAdapter(adapter);
		
		//panel
	}
	
}
